package com.zhoupeisen.feign.impl;

import com.zhoupeisen.entity.Product;
import com.zhoupeisen.feign.ProductFeignClient;
import org.springframework.stereotype.Component;

/**
 * @ClassName ProductFeignClientCallBack
 * @Description TODO
 * @Author Administrator
 * @Data 下午 09:51
 * @Version 1.0
 **/
@Component
public class ProductFeignClientCallBack implements ProductFeignClient {
    /**
    * 熔断返回的方法
    **/
    @Override
    public Product findById(Long id) {
        Product product = new Product();
        product.setProductName("feign熔断方法执行");
        return product;
    }
}
